From 353849ca816589c96bf3ea2475250599838004ce Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Mon, 25 Feb 2008 06:27:21 -0700 Subject: [PATCH] [IA64] Clear console page for sioemu This fixes a bug: by using pfn 0 for console, the page was not cleared, sometimes causing the domain to fail to boot. Signed-off-by: Tristan Gingold --- tools/libxc/ia64/xc_ia64_dom_fwloader.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/libxc/ia64/xc_ia64_dom_fwloader.c b/tools/libxc/ia64/xc_ia64_dom_fwloader.c index 4f3b25a37d..e7e1525cdb 100644 --- a/tools/libxc/ia64/xc_ia64_dom_fwloader.c +++ b/tools/libxc/ia64/xc_ia64_dom_fwloader.c @@ -58,9 +58,11 @@ static int xc_dom_load_fw_kernel(struct xc_dom_image *dom) static int alloc_magic_pages(struct xc_dom_image *dom) { /* allocate special pages */ - dom->console_pfn = 0; - dom->xenstore_pfn = 1; - dom->start_info_pfn = 2; + /* Note: do not use 0 for console or xenstore otherwise clear_page won't + clear the page. */ + dom->start_info_pfn = 0; + dom->console_pfn = 1; + dom->xenstore_pfn = 2; return 0; } -- 2.30.2